import {INCREMENT,REDUCE} from './constant'

export const createIncrementAction = data =>({type: INCREMENT, data})
export const createReduceAction = data =>({type: REDUCE, data})
export const createIncrementAsyncAction = (data,time) =>{
    return (dispatch)=>{
        setTimeout(() => {
           dispatch(createIncrementAction(data)) 
        }, time);
    }
}